package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.api.content.model.qo.QueryCourseBaseModel;
import com.xuecheng.api.content.model.vo.CourseBaseVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.content.entity.CourseBase;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-10-03
 */
public interface CourseBaseService extends IService<CourseBase> {
//查询课程基本信息
   // List<CourseBase> queryAll();

    /**
     * @param params ---分页数据
     * @param model---查询条件
     * @param companyId---公司id
     * @return
     */
    PageVO queryCourseBaseList(PageRequestParams params, QueryCourseBaseModel model,Long companyId);

    CourseBaseDTO createCourseBase(CourseBaseDTO dto);


    /**根据id查询课程基础信息
     * @param courseBaseId
     * @param commpanyId
     * @return
     */
     CourseBaseDTO getByCourseId( Long courseBaseId,long commpanyId);


    /**课程修改信息
     * @param
     * @param
     * @return
     */
     CourseBaseDTO modifyCourseBase(CourseBaseDTO courseBaseDTO);

    /**删除课程操作
     * @param courseBaseId
     * @param companyId
     */
    void removeCourseBase(Long courseBaseId,Long companyId);

}
